package de.mafr.jsystest.ws;


// TODO: turn into an interface?
// There would be StringRequest, JsonRequest implementing it
public class Request<T> {
	private T content;
	private String contentType;
	private String encoding;
	
	public Request(T content, String contentType, String encoding) {
		this.content = content;
		this.contentType = contentType;
		this.encoding = encoding;
	}

	// TODO: should return T, with an explicit mapper/factory turning it into a String!
	public String getContent() {
		return content.toString();
	}

	public String getContentType() {
		return contentType;
	}

	public String getEncoding() {
		return encoding;
	}
}
